package com.lzy.product.apis.impl;

import com.github.pagehelper.PageInfo;
import com.lzy.framework.core.orm.db.Pager;
import com.lzy.product.apis.AgentProtocolServiceApi;
import com.lzy.product.dtos.agent.AgentProtocolDto;
import com.lzy.product.service.AgentProtocolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by WIN7 on 2018/04/14.
 */
@Service
public class AgentProtocolServiceApiImpl implements AgentProtocolServiceApi {

    @Autowired
    AgentProtocolService agentProtocolService;

    @Override
    public Long insert(AgentProtocolDto dto) {
        return agentProtocolService.insert(dto);
    }

    @Override
    public Boolean update(AgentProtocolDto dto) {
        return agentProtocolService.update(dto);
    }

    @Override
    public Boolean delete(Long id) {
        return agentProtocolService.delete(id);
    }

    @Override
    public Boolean remove(Long id) {
        return agentProtocolService.remove(id);
    }

    @Override
    public AgentProtocolDto findById(Long id) {
        return agentProtocolService.findById(id);
    }

    @Override
    public List<AgentProtocolDto> query(AgentProtocolDto dto) {
        return agentProtocolService.query(dto);
    }

    @Override
    public PageInfo<AgentProtocolDto> selectList(Pager pager, AgentProtocolDto dto) {
        return agentProtocolService.selectList(pager,dto);
    }

    @Override
    public List<AgentProtocolDto> queryList() {
        return agentProtocolService.queryList();
    }

    @Override
    public AgentProtocolDto selectDetailById(Long id) {
        return agentProtocolService.selectDetailById(id);
    }
}
